#include "namedpipe.hpp"
int main()
{
    NamedPipe fifo(fifo_path, User);
    if (fifo.OpenForWrite())
    {
        std::cout << "client opend fifo" << std::endl;
        while (true)
        {
            std::string message;
            std::getline(std::cin, message);
            int n = fifo.WritePipe(message);
        }
    }
    return 0;
}